/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.service.email;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.config.dao.email.ConfigEmailDao;
import com.thinkgem.jeesite.modules.config.entity.email.ConfigEmail;

/**
 * 邮箱配置Service
 *
 * @author JiangYongKang
 * @version 2016-12-30
 */
@Service
@Transactional(readOnly = true)
public class ConfigEmailService extends CrudService<ConfigEmailDao, ConfigEmail> {

    @Autowired
    private ConfigEmailDao configEmailDao;
    public ConfigEmail get(String id) {
        return super.get(id);
    }

    public List<ConfigEmail> findList(ConfigEmail configEmail) {
        return super.findList(configEmail);
    }

    public Page<ConfigEmail> findPage(Page<ConfigEmail> page, ConfigEmail configEmail) {
        return super.findPage(page, configEmail);
    }

    @Transactional()
    public void save(ConfigEmail configEmail) {
        super.save(configEmail);
    }

    @Transactional()
    public void delete(ConfigEmail configEmail) {
        super.delete(configEmail);
    }
    
    public ConfigEmail getConfigEmail(){
        return configEmailDao.getConfigEmail();
    }

}